<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
        <meta name="format-detection" content="telephone=yes" />
        <title>公司介绍</title>
        <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
        <link rel="stylesheet" type="text/css" href="../../css/common.css" />
        <style>
            header .aui-title{
                font-size: 16px !important;
            }
            .aui-tab-nav li.active {
                color: #327afa;
                border-bottom: 2px #327afa solid;
            }
            footer ul li{
                height: 55px;
                line-height: 55px;
                font-size: 16px;
            }
            footer ul li:first-of-type{
                background: #d7e5ff;
                border-color: #d7e5ff;
                color: #327afa !important;
            }
            footer ul li:first-of-type a{
                color:#327afa !important;
            }
            footer ul li:nth-of-type(2) a{
                color:#fff !important;
            }
            footer ul li:nth-of-type(2){
                background: #327afa;
                border-color: #327afa;
                color: #fff;
            }
            .aui-icon-more{
                color:#000 !important;
            }
        </style>
    </head>
    <body>
        <header class="aui-bar aui-bar-nav aui-border-b">
            <div class="aui-pull-left aui-iconfont aui-icon-close icon-left-coler" tapmode onclick="closeWin()"></div>
            <div class="aui-title">
                公司介绍
            </div>
             <i class="aui-iconfont aui-icon-more  aui-pull-right" tapmode onclick="popHome()"></i>
            <ul class="aui-tab-nav aui-border-t">
                <li class="active" data-type="1" tapmode onclick="switchChange(this)">
                    基本信息
                </li>
                <li data-type="2" tapmode onclick="switchChange(this)">
                    认证信息
                </li>
            </ul>
        </header>
        <footer class="aui-nav" id="aui-footer">
            <ul class="aui-bar-tab">
                <li class="" id="" tapmode >
                    <a href="tel:4008001234"  target="_blank">
                        <div class="btn">联系商家</div>
                    </a>
                </li>
                <li class="" id="" tapmode >
                    <a href="tel:4008001234"  target="_blank">
                        <div class="btn">拨打电话</div>
                    </a>
                </li>
            </ul>
        </footer>
    </body>
    <script type="text/javascript" src="../../script/api.js"></script>
    <script type="text/javascript" src="../../script/common.js"></script>
    <script type="text/javascript" src="../../script/jquery-1.11.3.js"></script>
    <script type="text/javascript" src="../../script/mui.js"></script>
    <script type="text/javascript">
        apiready = function() {
            api.parseTapmode();
            var mobile = api.pageParam.mobile;
            var header = $api.dom('header');
            var footer = $api.dom('footer');
            //$api.fixStatusBar(header);
            api.setStatusBarStyle({
                  style : 'light'
            });
            var header_h = $api.offset(header).h;
            var footer_h = $api.offset(footer).h;
            var body_h = $api.offset($api.dom('body')).h - header_h-footer_h;
            api.openFrame({
                name : 'comIntrol_frm',
                url : 'comIntrol_frm.html',
                rect : {
                    x : 0,
                    y : header_h,
                    w : 'auto',
                    h : body_h
                },
                pageParam : {
                    mobile : mobile
                },
                bounces : false,
                vScrollBarEnabled : false,
                hScrollBarEnabled : false
            });
        }

        function switchChange(obj) {
            $('.aui-tab-nav li').removeClass('active');
            $(obj).addClass('active');
            var dataType=$(obj).attr("data-type");
            api.execScript({
                frameName:"comIntrol_frm",
                script:'showData('+dataType+')'
            })
        }
        // mui遮罩
        var mask;
        // 显示遮罩
        function popHome(){
            mask = mui.createMask(hidePicker);
            mask.show();
            //跨域执行子frame的显示mask
            api.execScript({
                frameName:"comIntrol_frm",
                script:"showMask()"
            })
        }
        // 关闭遮罩
        function hidePicker(){
            //跨域执行子frame的关闭mask
            api.execScript({
                frameName:"comIntrol_frm",
                script:"hideFrmMask()"
            })
        }
        //接收子frm执行的关闭遮罩
        function closeWinMask(){
            mask.myclose();
            //hidePicker();
        }
    </script>
</html>
